package org.umss.fixturebuilder.builder.model;

import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Daniela Meneses
 */
@XmlRootElement
public class Game {

    private String id;
    private Team local;
    private Team visitor;
    private boolean terminated;
    private int localScore;
    private int visitorScore;

    public Game(Team local, Team visitor) {
        this.local = local;
        this.visitor = visitor;
    }

    public Game(Team local, Team visitor, int localScore, int visitorScore, boolean terminated) {
        this.local = local;
        this.visitor = visitor;
        this.terminated = terminated;
        this.localScore = localScore;
        this.visitorScore = visitorScore;
    }

    public Game() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }    
    
    public Team getLocal() {
        return local;
    }

    public void setLocal(Team local) {
        this.local = local;
    }

    public Team getVisitor() {
        return visitor;
    }

    public void setVisitor(Team visitor) {
        this.visitor = visitor;
    }

    public boolean isTerminated() {
        return terminated;
    }

    public void setTerminated(boolean terminated) {
        this.terminated = terminated;
    }

    public int getLocalScore() {
        return localScore;
    }

    public void setLocalScore(int localScore) {
        this.localScore = localScore;
    }

    public int getVisitorScore() {
        return visitorScore;
    }

    public void setVisitorScore(int visitorScore) {
        this.visitorScore = visitorScore;
    }

    @Override
    public String toString() {
        return "        Game{" + "local=" + local + ", visitor=" + visitor + '}';
    }

}
